package com.khaled.protclass.model.bean.weka;

import com.khaled.protclass.model.util.Constants;

public class Attribute
{
	private String name;

	private String type;

	private String wekaAttributeFormat;
	
	public Attribute(String name, String type)
	{
		super();
		this.name = name;
		this.type = type;
	}
	
	public Attribute(String wekaAttributeFormat)
	{
		this.wekaAttributeFormat = wekaAttributeFormat;
	}
	
	@Override
	public String toString()
	{
		if (this.wekaAttributeFormat == null)
		{
			String attString = Constants.WEKA_ATTRIBUTE + " ";

			attString += this.name + " ";
			attString += this.type;

			return attString;
		}
		else
		{
			return wekaAttributeFormat;
		}
		
	}

}
